#!/bin/bash -p

echo "Fake which called with arguments: $@"

case $1 in
    python)    exit 1;;
    python3)   exit 1;;
    *)         command /usr/bin/which -- "$1";;
esac